<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieve a file from the database</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfs.findone.html">MongoGridFS::findOne</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfs.put.html">MongoGridFS::put</a></div>
 <div class="up"><a href="class.mongogridfs.html">MongoGridFS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongogridfs.get" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoGridFS::get</h1>
  <p class="verinfo">(PECL mongo &gt;=1.0.8)</p><p class="refpurpose"><span class="refname">MongoGridFS::get</span> &mdash; <span class="dc-title">Retrieve a file from the database</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongogridfs.get-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.mongogridfsfile.html" class="type MongoGridFSFile">MongoGridFSFile</a></span> <span class="methodname"><strong>MongoGridFS::get</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$id</code></span>
   )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongogridfs.get-parameters">
 <h3 class="title">参数</h3>
 <p class="para">
  <dl>

   
    <dt>

     <em><code class="parameter">id</code></em>
    </dt>

    <dd>

     <p class="para">
      <em>_id</em> of the file to find.
     </p>
    </dd>

      
  </dl>

 </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongogridfs.get-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the file, if found, or <strong><code>NULL</code></strong>.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongogridfs.findone.html">MongoGridFS::findOne</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfs.put.html">MongoGridFS::put</a></div>
 <div class="up"><a href="class.mongogridfs.html">MongoGridFS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
